package edu.kit.aifb.ldstream.learner.tasks.mod;

import org.openrdf.model.URI;
import org.openrdf.model.impl.URIImpl;

import edu.kit.aifb.ldstream.stat.distrib.IDistribution;

public class Type extends URIImpl implements Comparable<Type>{

	private static final long serialVersionUID = -5203264321462600849L;
	
	private IDistribution instanceOcc;
	
	public Type(String uri){
		super(uri);
	}
	
	public IDistribution getInstanceOcc() {
		return instanceOcc;
	}

	public void setInstanceOcc(IDistribution instanceOcc) {
		this.instanceOcc = instanceOcc;
	}



	public int hashCode(){
		return super.hashCode();
	}
	
	public boolean equals(Object o){
		if(o instanceof URI){
			URI other = (URI) o;
			return super.equals(other);
		}
		return false;
	}
	
	@Override
	public int compareTo(Type arg0) {
		return this.stringValue().compareTo(arg0.stringValue());
	}
	
}
